import { get, post } from "@/utils/request";
// 分页查询
export function queryPageList(query) {
  return post("/assetsServer/list", query);
}
export function entityTree(id)
{
  return get("/assetsOrg/treeselect", { id });
}
export function queryByOrder(query) {
  return get("/assetsServer/queryByOrder", query);
}

export function listAll(ids) {
  return get("/dictItems/listByTypes", { ids });
}

// 查询user
export function queryUserList(id) {
  return get("/assetsUser/list", { id });
}
export function addDatas(query) {
  return post("/assetsServer/add", query);
}

export function queryById(id) {
  return get("/assetsServer/detail", { id });
}
export function editDatas(query) {
  return post("/assetsServer/update", query);
}

export function deleteDatas(ids) {
  return get("/assetsServer/deleteBatch", { ids });
}

export function exportDatas(query) {
  return post("/assetsServer/export", query);
}




